<template>
  <div>
    <h3>Sync事件</h3>
    <div>
      <!-- 使用事件修饰符 类似v-model 等于在子组件身上添加了一个事件 -->
      <Child :count.sync="count" />
      <button @click="count++">jia</button>
    </div>
  </div>
</template>

<script>
import Child from "./Child.vue";
export default {
  name: "Sync",
  components: { Child },
  data() {
    return {
      count: 0,
    };
  },
  mounted(){
  console.log(this.$children);}
};
</script>

<style>
</style>